﻿using DAL;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BLL
{
    public class Information_DeliveryBLL
    {
        /// <summary>
        /// 获取全部题目
        /// </summary>
        /// <returns></returns>
        public static DataTable GetCanteen(string jh)
        {
            return Information_DeliveryDAL.GetCanteen(jh);
        }

        public static string GetImages()
        {
            return Information_DeliveryDAL.GetImages();
        }

        public static DataTable SelTitle_Publish(string jh)
        {
            return Information_DeliveryDAL.SelTitle_Publish(jh);
        }

        /// <summary>
        /// 获取题目
        /// </summary>
        /// <returns></returns>
        public static string questionnaire(string Code)
        {
            return Information_DeliveryDAL.questionnaire(Code);
        }
        /// <summary>
        /// 校验题目
        /// </summary>
        /// <param name="name"></param>
        /// <returns></returns>
        public static bool Canteen_Check_Name(string jh, string name)
        {
            return Information_DeliveryDAL.Canteen_Check_Name(jh, name);
        }
        /// <summary>
        /// 问卷调查添加
        /// </summary>
        /// <param name="name"></param>
        /// <returns></returns>
        public static int FindingsAdd(string questionCode, string questionjh, string questionName, string content, string Investigator)
        {
            return Information_DeliveryDAL.FindingsAdd(questionCode, questionjh, questionName, content, Investigator);
        }


        public static int Increase_Dish_Evaluation(string satisfied, string summary)
        {
            return Information_DeliveryDAL.Increase_Dish_Evaluation(satisfied, summary);
        }
        /// <summary>
        /// 修改题目信息
        /// </summary>
        /// <param name="id"></param>
        /// <param name="name"></param>
        /// <returns></returns>
        public static int ManageCanteenEdit(int id, string name, string jh)
        {
            return Information_DeliveryDAL.ManageCanteenEdit(id, name, jh);
        }
        /// <summary>
        /// 删除题目
        /// </summary>
        /// <param name="Id"></param>
        /// <returns></returns>
        public static int Batch_Delete(int Id)
        {
            return Information_DeliveryDAL.Batch_Delete(Id);
        }

        //获取自定义名称
        public static string SelCustom_Information()
        {
            return Information_DeliveryDAL.SelCustom_Information();
        }


        //写入自定义信息
        public static string Custom_InformationAdd(string CustomContent, string images)
        {
            return Information_DeliveryDAL.Custom_InformationAdd(CustomContent, images);
        }

        /// <summary>
        /// 获取信息浏览
        /// </summary>
        /// <returns></returns>
        public static DataTable GetCustomCode(string jh)
        {
            return Information_DeliveryDAL.GetCustomCode(jh);
        }

    }
}
